<template>
  <div class="coming-box">
    <div class="coming-left">
      <img :src="item.poster" alt="" />
    </div>
    <div class="coming-content">
      <p>
        {{ item.name }} <span class="coming-type">{{ item.item.name }}</span>
      </p>
      <p>导演：{{ item.director }}</p>
      <p>主演：{{ item.actors.map((item) => item.name).join(" ") }}</p>
      <p>类型：{{ item.category }}</p>
    </div>
  </div>
</template>

<script setup>
const props = defineProps({
  item:Object
});

</script>

<style lang="scss" scoped>
.coming-box {
  width: 100%;
  height: 125px;
  display: flex;
  padding: 10px 10px 10px 10px;
  border-bottom: 1px solid #ededed;

  p {
    font-size: 13px;
    color: #797d82;
    margin-bottom: 5px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  p:nth-child(1) {
    color: #191a1b;
    font-size: 16px;
    margin-bottom: 5px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .coming-left {
    width: 20%;
    height: 100%;
    img {
      width: 100%;
      height: 100%;
    }
  }
  .coming-content {
    width: 70%;
    padding: 0 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    .coming-type {
      color: white;
      background-color: #d3d6db;
      font-size: 14px;
      border-radius: 4px;
      padding: 0 4px;
    }
  }
}
</style>
